package com.kfm.am;

import java.util.Objects;

public class GenShin {

    private String role;
    private String weapon;
    private int orderSeat;
    private String CV;

    public GenShin(String role, String weapon, int orderSeat, String CV) {
        this.role = role;
        this.weapon = weapon;
        this.orderSeat = orderSeat;
        this.CV = CV;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getWeapon() {
        return weapon;
    }

    public void setWeapon(String weapon) {
        this.weapon = weapon;
    }

    public int getOrderSeat() {
        return orderSeat;
    }

    public void setOrderSeat(int orderSeat) {
        this.orderSeat = orderSeat;
    }

    public String getCV() {
        return CV;
    }

    public void setCV(String CV) {
        this.CV = CV;
    }

    @Override
    public String toString() {
        return "GenShin{" +
                "角色名：'" + role + '\'' +
                ", 武器：'" + weapon + '\'' +
                ", 命座：" + orderSeat +
                ", 配音演员：'" + CV + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) return true;
        if (object == null || getClass() != object.getClass()) return false;
        GenShin genShin = (GenShin) object;
        return orderSeat == genShin.orderSeat && Objects.equals(role, genShin.role) && Objects.equals(weapon, genShin.weapon) && Objects.equals(CV, genShin.CV);
    }

    @Override
    public int hashCode() {
        return Objects.hash(role, weapon, orderSeat, CV);
    }
}
